<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>编辑应用</title>
    <link href="${base}/resource/admin/css/common.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="${base}/resource/admin/js/jquery.js"></script>
    <script type="text/javascript" src="${base}/resource/admin/js/jquery.validate.js"></script>
    <script type="text/javascript" src="${base}/resource/admin/js/common.js"></script>
    <script type="text/javascript" src="${base}/resource/admin/js/input.js"></script>
    <script type="text/javascript">
        $().ready(function() {
            var $inputForm = $("#inputForm");
            [@flash_message /]

            var $browserButton = $("#browserButton");
            $browserButton.browser({basePath:"/fqg"});
        });
    </script>
</head>
<body>
<div class="path">
    <a href="${base}/admin/common/index.do">首页</a> &raquo;编辑用户
</div>
<form id="inputForm" action="update" method="post" class="required-form" onsubmit="return validateForm(this)">
    <input type="hidden" name="id" value="${entity.id}"/>
    <table class="input tabContent">
        <tr>
            <th>
                <span class="requiredField">*</span>用户id
            </th>
            <td>
                <input type="text" class="text required" value="${entity.id}" readonly="readonly" maxlength="100" disabled="disabled" />
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>用户名
            </th>
            <td>
                <input type="text" name="username" class="text required" value="${entity.username}" readonly="readonly" maxlength="100" />
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>资金余额
            </th>
            <td>
                <span style="color: #cc0000;font-size: 24px;">${entity.balance}</span>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>宝币余额
            </th>
            <td>
                <span style="color: #cc0000;font-size: 24px;">${entity.virtualCurrency}</span> <a href="/member/recharge?id=${entity.id}">充值</a>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>密码
            </th>
            <td>
                <input type="text" name="password" class="text" value="" maxlength="100" />
                <span style="color: #cc0000">如果不修改,请勿填写</span>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>LOGO
            </th>
            <td>
                <span class="fieldSet">
						<input type="text" id="logo" name="logo" class="text valid" value="${entity.logo}" maxlength="200">
						<input type="button" id="browserButton" class="button" value="选择文件">
                </span>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>姓名/公司
            </th>
            <td>
                <input type="text" name="name" class="text required" value="${entity.name}"  maxlength="100" />
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>证件号码
            </th>
            <td>
                <input type="text" name="cardNo" class="text required" value="${entity.cardNo}"  maxlength="100" />
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>昵称/应用名称
            </th>
            <td>
                <input type="text" name="nickname" class="text required" value="${entity.nickname}"  maxlength="100" />
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>电话号码
            </th>
            <td>
                    <span class="fieldSet">
					    <input type="text" name="mobile" value="${entity.mobile}" readonly="readonly" class="text required" maxlength="64" />
					</span>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>是否启用:
            </th>
            <td>
                <select name="isEnabled" class="text required">
                    <option [#if entity.isEnabled] selected="selected" [/#if] value="1" >有效</option>
                    <option [#if entity.isEnabled=false]selected="selected"  [/#if]  value="0">无效</option>
                </select>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>是否锁定:
            </th>
            <td>
                <select name="isLocked" class="text required">
                    <option [#if entity.isLocked] selected="selected" [/#if] value="1" >有效</option>
                    <option [#if entity.isLocked=false]selected="selected"  [/#if]  value="0">无效</option>
                </select>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>最后登录时间
            </th>
            <td>
                [#if entity.loginDate??]
                    ${entity.loginDate?string("yyyy-MM-dd HH:mm:ss")}
                [/#if]

            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>注册时间
            </th>
            <td>
            ${entity.createDate?string("yyyy-MM-dd HH:mm:ss")}
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>注册IP
            </th>
            <td>
                ${entity.registerIp}
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>用户类型:
            </th>
            <td>
                <select name="memberType" class="text required">
                    <option [#if entity.memberType] selected="selected" [/#if] value="0" >普通用户</option>
                    <option [#if entity.memberType=false]selected="selected"  [/#if]  value="1">商家用户</option>
                </select>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>站点
            </th>
            <td>
                    <span class="fieldSet">
					    <input type="text" name="url" value="${entity.url}"  class="text required" maxlength="64" />
					</span>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>描述
            </th>
            <td>
                <span class="fieldSet">
					    <input type="text" name="description" value="${entity.description}"  class="text required" maxlength="64" />
                </span>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>是否上架
            </th>
            <td>
                <label>
                    <input type="checkbox" name="isMarketable" [#if entity.isMarketable=true]  checked="checked" [/#if]/>发布
                </label>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>是否列出
            </th>
            <td>
                <label>
                    <input type="checkbox" name="isList" [#if entity.isList=true]  checked="checked" [/#if]/>发布
                </label>
            </td>
        </tr>
        <tr>
            <th>
                &nbsp;
            </th>
            <td>
                <input type="submit" class="button" value="提交" />
                <input type="button" class="button" value="返回" onclick="location.href='list'"/>
            </td>
        </tr>
    </table>
</form>
</body>
</html>